/* 板块轮动表格样式 */
.board-rotation-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.board-rotation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.board-rotation-table th,
.board-rotation-table td {
    border: 1px solid #ebeef5;
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
    min-width: 100px;
}

.board-rotation-table th {
    background-color: #e8eef5;
    font-weight: bold;
    color: #606266;
    font-size: 15px;
}

.board-rotation-table td {
    cursor: pointer;
    transition: all 0.3s ease;
}

.board-rotation-table td:hover {
    background-color: #f0f9ff;
}

.board-rotation-table .empty {
    color: #c0c4cc;
    font-style: italic;
}

.board-rotation-table .rank-label {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: #409eff;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.board-name {
    font-weight: bold;
    color: #303133;
    margin-bottom: 4px;
}

.zt-num {
    color: #909399;
    font-size: 12px;
}

.highlighted {
    background-color: #fff2f0 !important;
    border: 2px solid #ff7875;
    color: #cf1322 !important;
    box-shadow: 0 2px 8px rgba(255, 120, 117, 0.3);
    position: relative;
}

.highlighted:hover {
    background-color: #ffebe8 !important;
    transform: scale(1.02);
    z-index: 10;
}

.highlighted .board-name {
    color: #cf1322 !important;
    font-weight: 700;
}

.highlighted .zt-num {
    color: #ff4d4f !important;
    font-weight: 600;
}

/* 相同板块的特殊样式 */
.same-sector::before {
    content: '●';
    position: absolute;
    top: 2px;
    right: 2px;
    color: #ff4d4f;
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* 个股详情联动表格样式 */
.stock-detail-panel {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e8f4fd;
}

.stock-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.stock-detail-table th {
    background-color: #e8eef5;
    color: #606266;
    font-weight: 600;
    font-size: 15px;
    padding: 12px;
    text-align: center;
    border: 1px solid #ebeef5;
}

.stock-detail-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ebeef5;
}

.stock-detail-table tbody tr:hover > td {
    background-color: #f0f9ff !important;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
}

.panel-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.panel-header .close-btn {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #909399;
    padding: 5px;
}

.panel-header .close-btn:hover {
    color: #f56c6c;
}
